<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="article/edit?ids={$wish.id}">
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">轮播图</label>
    <div class="col-xs-12 col-sm-8">
      <div class="input-group">
        <input id="c-carousel" data-rule="required" class="form-control" size="50" name="row[carousel]" type="text" value="{$wish.carousel|htmlentities}">
        <div class="input-group-addon no-border no-padding">
                <span>
                    <button type="button" id="faupload-carousel" class="btn btn-danger faupload"
                            data-input-id="c-carousel"
                            data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp,video/mp4,video/x-m4v,video/*"
                            data-multiple="true"
                            data-preview-id="p-carousel">
                        <i class="fa fa-upload"></i> {:__('Upload')}
                    </button>
                </span>
        </div>
        <span class="msg-box n-right" for="c-carousel"></span>
      </div>
      <ul class="row list-inline faupload-preview" id="p-carousel"></ul>
    </div>
  </div>
  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">视频:</label>
    <div class="col-xs-12 col-sm-8">
      <div class="input-group">
        <input id="c-video_url" class="form-control" size="50" name="row[video_url]" type="text" value="{$wish.video_url|htmlentities}">
        <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-video" class="btn btn-danger faupload"
                                data-input-id="c-video_url"
                                data-mimetype="video/mp4,video/x-m4v,video/*"
                                data-multiple="true"
                                data-preview-id="p-video_url">
                            <i class="fa fa-upload"></i> {:__('Upload')}
                        </button>
                    </span>
        </div>
        <span class="msg-box n-right" for="c-video_url"></span>
      </div>
      <ul class="row list-inline faupload-preview" id="p-video_url"></ul>
    </div>
  </div>

  <div class="form-group">
    <label class="control-label col-xs-12 col-sm-2">内容:</label>
    <div class="col-xs-12 col-sm-8">
      <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$wish.content|default=''}</textarea>
    </div>
  </div>

  <div class="form-group layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
      <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
    </div>
  </div>
</form>